<%@page import="fr.uniscol.model.IUniscolUser"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ include file="includes/Header.jsp" %>

<jsp:useBean id="utilisateur" type="fr.uniscol.model.IUniscolUser" scope="request" />

 <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="<c:url value="home" />"><img src="<c:url value="/resources/img/logo_uniscol_nav.jpg" />" class="img-rounded img-responsive" alt="Uniscol" /></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
     <!--
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link</a></li>
        <li><a href="#">Link</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li class="divider"></li>
            <li><a href="#">Separated link</a></li>
            <li class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
       -->
      <ul class="nav navbar-nav"> 
      
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Bases <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">Créer une nouvelle base</a></li>
            <li class="divider"></li>
            <li><a href="<c:url value='bases'/>">Gérer les bases</a></li>
          </ul>
        </li>  
        
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Etablissements <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">Ajouter un nouvel établissement</a></li>
            <li class="divider"></li>
            <li><a href="<c:url value='etablissements'/>">Gérer les établissements</a></li>
          </ul>
        </li> 
          
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Utilisateurs <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">Ajouter un utilisateur</a></li>
            <li class="divider"></li>
            <li><a href="<c:url value='utilisateurs'/>">Gérer les utilisateurs</a></li>
          </ul>
        </li>
        
      </ul>
       
       
      <form class="navbar-form navbar-left" role="search">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Rechercher">
        </div>
        <button type="submit" class="btn btn-default">Rechercher</button>
      </form>
      
      <ul class="nav navbar-nav navbar-right">
        <!-- <li><a href="#">Link</a></li> -->
        
         <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Messages <b class="caret"></b></a>
          <ul class="dropdown-menu">
             <li><a href="#">Nouveau message</a></li>
            <li class="divider"></li>
            <li><a href="#">Boite de réception</a></li>
            <li><a href="#">Messages envoyés</a></li>
            <li><a href="#">Messages supprimés</a></li>
            <li class="divider"></li>
            <li><a href="#">Contacts</a></li>
          </ul>
        </li>
        
        <c:if test="${not empty utilisateur.baseSelectionnee}">
        <li><a href="#"><img src="<c:url value="/resources/img/base_mini.png" />" alt=""/>${utilisateur.baseSelectionnee.annee}</a></li>
        </c:if>
        
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">${utilisateur.identite} <b class="caret"></b></a>
          <ul class="dropdown-menu">
             <li><a href="#">Paramètres</a></li>
            <!--<li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
             -->
            <li class="divider"></li>
            <li><a href='<c:url value="disconnect" />'>Déconnexion</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

